package com.tour.sic.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: SIC
 * @description: 实体层 活动表
 * @author: team
 * @create: 2021-04-22 16:25:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Activity {
    private Integer id;
    private Integer sid;
    private String name;
    private String explain;// 活动说明
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date btime; // 活动开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ftime; // 活动结束时间
}